package com.stone;

import java.util.HashMap;
import java.util.Map;

public class CarLocationTracker {

    private Map<String,Location> map=new HashMap<String, Location>();

    public void update(String code,Location location){

        // Location location = map.get(code);
        // Location location = new Location();

        map.put(code,location);
        // location.setXY(x,y);
    }

    public Location get(String code){

        return map.get(code);
    }

}
